package com.itheima.tanhua.api;

import com.itheima.tanhua.domain.Personality;
import com.itheima.tanhua.domain.Score;

/**
 * @author Lff
 * @date 2022/4/9
 */
public interface PersonalityApi {
    /**
     * 根据问卷难度
     * 用户成绩来获取指定结果
     * @param level
     * @param stars
     * @param score
     * @return
     */
    Personality findPersonality(Integer level, Integer stars, Integer score);

    /**
     * 根据id查询结果表
     * @param id
     */
    Personality findById(Long id);
}
